package com.huayi.datagovernance.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wuch
 * @version 1.0
 * @date 2021/4/8 14:38
 */
@Data
@TableName(value = "user",schema = "sxyktest")
@ApiModel(value = "用户",description = "用户表模型")
public class UserPg implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id", notes = "主键")
    private String id;

    private String name;

    private Integer age;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
